<?php
class model_TagModel{
    private $id;
    private $text;

    public function  __construct($row) {
        $this->setId($row['id'])
             ->setText($row['text']);
    }

    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
        return $this;
    }

    public function getText() {
        return $this->text;
    }

    public function setText($text) {
        $this->text = $text;
        return $this;
    }


}
